package com.ys.service;

import com.baomidou.mybatisplus.service.IService;
import com.ys.entity.WalletDeposit;
import com.ys.entity.WalletWithdraw;
import com.ys.mapper.WalletWithdrawDao;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 提币表 服务实现类
 * </p>
 *
 * @author zpf
 * @since 2018-03-26
 */
@Service
public class WalletWithdrawServiceImap extends ServiceImpl<WalletWithdrawDao, WalletWithdraw> implements IService<WalletWithdraw> {

    @Autowired
    private WalletWithdrawDao walletWithdrawDao;

    /**
     * 根据链类型，和当前块数更新充值状态
     * @param walletWithdraw
     * @param confirmBlcokNum
     * @return
     */

    public int updateWithdrawStatus(WalletWithdraw walletWithdraw, Integer confirmBlcokNum){
        return walletWithdrawDao.updateWithdrawStatus(walletWithdraw,confirmBlcokNum);
    }

}
